@charset "UTF-8";

// Notice
.zby-notice-box {
  &.leave {
    .zby-toast-box {
      opacity: 0;
    }
  }
}

// Toast
.zby-toast-box {
  position: fixed;
  left: 50%;
  top: 30%;
  padding: 1rem 0;
  width: 10rem;
  margin-left: -5rem;
  background: rgba(0,0,0, .7);
  border-radius: 10px;
  text-align: center;
  font-size: 28px;
  line-height: 42px;
  color: #fff;
  z-index: 1000;

  -webkit-transition: all .3s;
  transition: all .3s;
  // 正常提示
  &.info {
    -webkit-animation: Flop .5s linear;
    animation: Flop .5s linear;
  }

  // 成功提示
  &.success {
    -webkit-animation: BombIn .3s;
    animation: BombIn .3s;
  }

  // 警告提示
  &.warning {
    -webkit-animation: BombIn .3s;
    animation: BombIn .3s;
  }

  // 错误提示
  &.error {
    -webkit-animation: BombIn .5s;
    animation: BombIn .5s;
  }

  .zby-toast-icon {
    padding: 1rem;
    font-size: 2.5rem;
    text-align: center;
    color: #fff;
  }

  .zby-toast-content {
    font-size: 1rem;
    text-align: center;
    color: #fff;
  }
}

@keyframes BombIn {
  0% {
    transform: scale(0, 0);
    -webkit-transform:scale(0, 0);
  }
  50% {
    transform:scale(0, 0);
    -webkit-transform:scale(1.2, 1.2);
  }
  100% {
    transform:scale(1, 1);
    -webkit-transform:scale(1, 1);
  }
}

@-webkit-keyframes BombIn {
  0% {
    transform: scale(0, 0);
    -webkit-transform:scale(0, 0);
  }
  50% {
    transform:scale(0, 0);
    -webkit-transform:scale(1.2, 1.2);
  }
  100% {
    transform:scale(1, 1);
    -webkit-transform:scale(1, 1);
  }
}

@keyframes Flop {
  0% {
    transform:rotateY(90deg);
    -webkit-transform:rotateY(90deg);
  }
  33% {
    transform:rotateY(0deg);
    -webkit-transform:rotateY(0deg);
  }
  67% {
    transform:rotateY(-30deg);
    -webkit-transform:rotateY(-30deg);
  }
  100% {
    transform:rotateY(0deg);
    -webkit-transform:rotateY(0deg);
  }
}

@-webkit-keyframes Flop {
  0% {
    transform:rotateY(90deg);
    -webkit-transform:rotateY(90deg);
  }
  33% {
    transform:rotateY(0deg);
    -webkit-transform:rotateY(0deg);
  }
  67% {
    transform:rotateY(-30deg);
    -webkit-transform:rotateY(-30deg);
  }
  100% {
    transform:rotateY(0deg);
    -webkit-transform:rotateY(0deg);
  }
}
